package cn.xiaopengstack.infrastructure.dao;

import cn.xiaopengstack.infrastructure.dao.po.AiClient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jiangyangang
* @description 针对表【ai_client(AI客户端配置表)】的数据库操作Mapper
* @createDate 2025-08-29 15:15:19
* @Entity cn.xiaopengstack.infrastructure.dao.po.AiClient
*/
public interface AiClientMapper {

    int deleteByPrimaryKey(Long id);

    int insert(AiClient record);

    int insertSelective(AiClient record);

    AiClient selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AiClient record);

    int updateByPrimaryKey(AiClient record);

    /**
     * 查询客户端
     * @param clients
     * @return
     */
    List<AiClient> queryByClientIds(@Param("clients") List<String> clients);

    /**
     * 查询客户端配置
     * @param clientId
     * @return
     */
    AiClient queryByClientId(@Param("clientId") String clientId);
}
